home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: Re: ports
- Date: Tue, 05 Mar 96 12:42:10 GMT
- Organization: none
- Message-ID: <826029730snz@genesis.demon.co.uk>
- References: <4hes6g$2fp@gsusgi1.gsu.edu>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <4hes6g$2fp@gsusgi1.gsu.edu>
- matmrlx@gsusgi1.gsu.edu "Michael R. Lauer" writes:
-
- >I have a program running on SCO UNIX and AIX that dials the modem and sends
- >a bunch of messages. It works fine for days and hundreds of messages, then
- >`for no apparent reason' the port goes `sour'. By that I mean the simple
- >fd = open(acu, O_RDWR | O_NONBLOCK) fails with errno == 9.
-
- open() and tty's are not a part of the C language and are off-topic for
- comp.lang.c. Try comp.unix.programmer, comp.unix.sco.programmer or
- comp.unix.aix. If the problem occurs on just one of the OSs try
- comp.unix.programmer otherwise try the OS specific newsgroup on which it
- fails. State whether you are using the standard system serial ports
- and drivers or 3rd party ones.
-
- Error 9 is EBADF on SCO which isn't a sensible error code for open(). Check
- whether that error code was generated by open() or by a later call to which
- you passed a bad handle after open failed (but follow-up to an appropriate
- newsgroup).
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-